<include file='__PUBLIC__/frame.html'/>
		<!-- start right -->
<div class="right">
	<div class="now">
		<div class="now_l"></div>
		<div class="now_m">
			<span class="fl">类型列表</span>
			<span class="fr fabu"><a href="{|U:'Type/add'}">新增类型</a></span>
		</div>
		<div class="now_r"></div>
		<div class="clear"></div>
	</div>
	<div class="search">
		<div class="fr searbox">
			<form method="get">
				<input type="hidden" name="mod" value="article" />
				类型名称：<input type="text" name="name" value="" class="inputtext inputtext_200" />
				<select name="class_id" class="inputselect">
				<option value="" href="?mod=article">全部类型</option>
								<option value="1" href="?mod=article&class_id=1" >网站公告</option>
								<option value="2" href="?mod=article&class_id=2" >公司动态</option>
								<option value="3" href="?mod=article&class_id=3" >相关知识</option>
								<option value="4" href="?mod=article&class_id=4" >商城新闻</option>
								</select>
				<input type="submit" value="搜索" class="input2" />
			</form>
		</div>
		<div class="clear"></div>
	</div>
	<form method="post" id="form">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list">
	<tr>
		<td class="bgtt" width="10"><input type="checkbox" name="checkall" onclick="pe_checkall(this, 'article_id')" /></td>
		<td class="bgtt" width="50">类型ID</td>
		<td class="bgtt" colspan="4" >类型名称</td>
		<td class="bgtt" width="100"></td>
		<td class="bgtt" width="100"></td>
		<td class="bgtt" width="88">操作</td>
		<td class="bgtt" width="80"></td>
	</tr>
	<foreach from='$data' key='$key' value='$v'>
	<tr>
		<td><input type="checkbox" name="tid[]" value="{$v.tid}"></td>
		<td>{$v.tid}</td>
		<td colspan="3"  class="aleft"><a href="" >{$v.type}</a></td>
		<td></td>
		<td></td>
		<td></td>
		<td colspan="2">
			<a style="width: 60px;" href="{|U:'tproperty/index',array('tid'=>$v['tid'])}" class="admin_edit mar3">属性列表</a>
			<a href="{|U:'Type/edit',array('tid'=>$v['tid'])}" class="admin_edit mar3">修改</a>
			<a href="{|U:'Type/del',array('tid'=>$v['tid'])}" class="admin_del" onclick="return confirm('确认删除吗')">删除</a>
			
		</td>
	</tr>
	</foreach>
	<tr>
		<td class="bgtt"><input type="checkbox" name="checkall" onclick="pe_checkall(this, 'article_id')" /></td>
		<td class="bgtt aleft" colspan="9">
			<span class="fl"><button href="" onclick="return confirm('确定批量删除吗?') ">批量删除</button></span>
			<span class="fenye"></span>
		</td>
	</tr>	
	</table>
	</form>
</div>
<script type="text/javascript"> 
$(function(){
	$("select").change(function(){
		window.location.href = 'admin.php' + $(this).find("option:selected").attr("href");
	})
})
</script>
	
		<div class="clear"></div>
	</div>
	<div class="foot">Copyright <span class="num">&copy;</span> 2014-2017 <a target="_blank" href="#"></a> 版权所有</div>
</div>
<script type="text/javascript"> 
$(function(){
	$(".list").find("tr").hover(
		function(){
			if ($(this).find("td").hasClass("bgtt")) return;
			$(this).find("td").css("background-color", "#ffffdd");
		},
		function(){
			if ($(this).find("td").hasClass("bgtt")) return;
			$(this).find("td").css("background-color", "#fff");
		}
	)
})
</script>

		<!-- end right -->

</body>
</html>	
